//
//  HYTableViewRow.h
//
//  Created by yan on 2017/5/8.
//  Copyright © 2017年 yan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef CGFloat (^HYTableViewRowBlock)();

@interface HYTableViewRow : NSObject

+ (HYTableViewRow *)row:(id)model;

@property (nonatomic, strong) id model;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, copy) NSString *identifier; // default class name
@property (nonatomic, copy) HYTableViewRowBlock heightBlock; // calculate height

@end
